#include<stdio.h>
#include<string.h>

void order2(char a[],int n){
	int i=0,kg=0,j;
	char t;
	for(i=0;i<n-1;i++){
		kg=1;
		for(j=0;j<n-1-i;j++){
			if(a[j]>a[j+1]){
				t=a[j];
				a[j]=a[j+1];
				a[j+1]=t;
				kg=0;
			}
		}
		if(kg==1) break;
	}
}
int main()
{
	int sign,flag,key=0,h=0;
	char str[81]={'\0'},c[81]={'\0'};
	gets(str);
	int t=strlen(str);
	for(sign=0;sign<t;sign++)
	{
		if('a'<=str[sign]&&str[sign]<='z') str[sign]-=32;
		if('A'<=str[sign]&&str[sign]<='Z') c[key++]=str[sign];
	}
	order2(c,key);
	for(flag=0;flag<t;flag++)
	{
		if('A'<=str[flag]&&str[flag]<='Z')
		{
			str[flag]=c[h++];
		}
	}
	puts(str);
	return 0;
}
